<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/spring.css">
</head>
<body>
    <div  id="select">
        <select name="select" id="list">
            <option value="./css/spring.css">春</option>
            <option value="./css/summer.css">夏</option>
            <option value="./css/auto.css">秋</option>
            <option value="./css/window.css">冬</option>
        </select>
    </div>
    <div class="block"></div>
    <div class="block"></div>
    <div class="block"></div>
    <div class="block"></div>

//homework   点击小色块切换目标颜色
    <script>
        var link = document.querySelector('link');
        var list=document.querySelector('#list');
        list.onchange=function(){
            link.href=list.value
        }



    </script>
</body>
</html>